# encoding: utf-8 

import tensorflow as tf
from tensorflow import estimator
#pip install --upgrade tensorflow

# Set up a linear classifier.
classifier = tf.estimator.LinearClassifier()

# Train the model on some example data.
classifier.train(input_fn=train_input_fn, steps=2000)

# Use it to predict.
predictions = classifier.predict(input_fn=predict_input_fn)